#include <fstream>

#include <iostream>

#include <experimental/filesystem>

namespace fs = std::experimental::filesystem;

int main()
{
     //  std::cout << "Hello world" << std::endl;
    
    // fs::create_directories("./sandbox/a/b"); // 创建目录
    fs::create_directories("./sandbox/a"); // 创建目录
    std::ofstream("./sandbox/file1.txt");
    std::ofstream("./sandbox/file2.txt");
    std::ofstream("./sandbox/a/file2.txt");
    std::ofstream("./sandbox/a/b/file2.txt");
    for(auto &p : fs::recursive_directory_iterator("sandbox")){
        std::cout<<p<<'\n';
    }
    // fs::remove_all("sandbox");

    return 0;
}

